<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>业务表单</title>
    <%@include file="/common/header.jspf"%>
    <SCRIPT src="${ctx}/resources/js/hiddenDanger/hdRegister/detail.js" type="text/javascript"></SCRIPT>
</head>
<body>
<div class="menu-right" style="">
    <%--<a class="button icon-save" id="btn_save">
        保存
    </a>
    <a class="button icon-refer" id="">
        提交
    </a>
    <a class="button icon-export">
        导入
    </a>--%>
</div>
<form class="hdRegisterForm" method="post">
    <input type="hidden" id="hdId" name="id" value="${hdInfo.id}"/>
    <div class="information">
        <div class="information-title">
            <p>隐患基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="height: 220px;">
            <div style="clear: both">
                <div class="form_one" style="width: 720px;">
                    <label class="lable-style">隐患名称:</label>
                    <input type="text" class="easyui-textbox" style="width: 598px;" name="name" value="${hdInfo.name}" readonly="true" >
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患所在单位:</label>
                    <input id="dept" class="easyui-textbox" style="width: 240px;" name="deptId" value="${hdInfo.dept.name}" readonly="true">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width:720px">
                    <label class="lable-style">隐患所在部位:</label>
                    <input type="text" class="easyui-textbox" style="width:598px;" name="site" value="${hdInfo.site}" readonly="true">
                </div>
                <div class="form_one">
                    <label class="lable-style">关键装置/要害部位:</label>
                    <input type="text" class="easyui-textbox" style="width: 240px;" name="keyEquipmentId" value="${hdInfo.keyEquipmentId}" readonly="true">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">隐患原因:</label>
                    <input class="easyui-textbox" name="reasonId" editable="false" style="width: 240px;" value="${hdInfo.reason.name}" readonly="true">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患分类:</label>
                    <input class="easyui-textbox" name="typeId" editable="false" style="width: 240px;" value="${hdInfo.type.name}" readonly="true">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患来源:</label>
                    <input class="easyui-textbox" name="sourceId" editable="false" style="width: 240px;" value="${hdInfo.source.name}" readonly="true">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">项目责任单位:</label>
                    <input class="easyui-textbox" style="width: 240px;" name="dutyDeptId"  value="${hdInfo.dutyDept.name}" readonly="true">
                </div>
                <div class="form_one">
                    <label class="lable-style">所属板块:</label>
                    <input  class="easyui-textbox" name="plateId" editable="false" style="width: 240px;" value="${hdInfo.plate.name}" readonly="readonly">
                </div>
                <div class="form_one">
                    <label class="lable-style">年度:</label>
                    <input class="easyui-textbox" name="yearth" editable="false" style="width: 240px;" value="${hdInfo.yearth}" readonly>
                </div>
            </div>
            <div style="clear: both;height:57px;">
                <div class="form_one" style="width: 900px;">
                    <label class="lable-style">隐患描述:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="description" value="${hdInfo.description}" readonly/>
                </div>
            </div>
            <div style="" >
                <div class="form_one fotm-textarea">
                    <label class="lable-style">备注:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="remarks" value="${hdInfo.remarks}" readonly/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>防范措施</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="height: 50px;">
            <div style="clear: both">
                <div class="form_one" style="width: 900px;">
                    <label class="lable-style">防范措施及整改建议:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="changedSuggest" readonly value="${hdInfo.changedSuggest}">
                </div>
            </div>
        </div>
    </div>
</form>
    <div class="information">
        <div class="information-title">
            <p>防范措施列表</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <form id="precautionForm">
        <div class="enclosure"style="height:300px; " >

            <table id="precautionList">
            </table>

            <%--<div id="tb">
                <a id="btn_precaution_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg" style="margin:5px;" onclick="appendTableRow()">添加</a>
                <a id="btn_precaution_delete" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-trash fa-lg" style="margin:5px;" onclick="deleteTableRow()">删除</a>
                <a id="btn_precaution_edit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-edit fa-lg" style="margin:5px;" onclick="editTableRow()">编辑</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow()">保存</a>
                <a id="btn_precaution_reject" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-reply fa-lg" style="margin:5px;" onclick="rejectTableRow()">撤销</a>
            </div>--%>
        </div>
        </form>
    </div>
<form class="hdRegisterForm" method="post">
    <div class="information">
        <div class="information-title">
            <p>防范措施相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <accessory:accessorySimple permission=""  packageKey="ffcs" packageInfos="${accessoryList}" uploadUserId="${loginUser.id}"   accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information">
        <div class="information-title">
            <p>隐患评估信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>

    <div class="cuttle" style="height:240px;">
        <div style="clear: both">
            <div class="form_one" >
                <label class="lable-style">计划设计完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" name="planDesignFinishTime" editable="false" data-options="required:true" value="${hdInfo.planDesignFinishTime}" readonly>
            </div>
            <div class="form_one">
                <label class="lable-style">计划采购完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" name="planProcureFinishTime" editable="false" data-options="required:true" value="${hdInfo.planProcureFinishTime}" readonly>
            </div>
            <div class="form_one">
                <label class="lable-style">计划施工完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" name="planConstructFinishTime" editable="false" data-options="required:true" value="${hdInfo.planConstructFinishTime}" readonly>
            </div>
        </div>
        <div style="clear: both">
            <div class="form_one" >
                <label class="lable-style">计划投用时间:</label>
                <input class="easyui-datebox" style="width: 240px;" name="planUsedTime" editable="false" data-options="required:true" value="${hdInfo.planUsedTime}" readonly>
            </div>
            <div class="form_one">
                <label class="lable-style">计划开始时间:</label>
                <input class="easyui-datebox" style="width: 240px;" name="planStartTime" editable="false" value="${hdInfo.planStartTime}" readonly>
            </div>
            <div class="form_one">
                <label class="lable-style">计划完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" name="planFinishTime" editable="false" value="${hdInfo.planFinishTime}" readonly>
            </div>

        </div>
        <div style="clear: both">
            <div class="form_one">
                <label class="lable-style">隐患风险等级:</label>
                <input class="easyui-textbox" name="riskGradeId" editable="false" style="width: 240px;" value="${hdInfo.riskGrade.name}" readonly>
            </div>
            <div class="form_one">
                <label class="lable-style">隐患等级:</label>
                <input class="easyui-textbox" name="gradeId" editable="false" style="width: 240px;" editable="false" readonly value="${hdInfo.grade.name}">
            </div>
            <div class="form_one">
                <label class="lable-style">可能造成的损失（万元）:</label>
                <input type="text" class="easyui-textbox" style="width:240px;" name="possibleLoss" value="${hdInfo.possibleLoss}" readonly>
            </div>


        </div>
        <div style="clear: both">
            <div class="form_one">
                <label class="lable-style">计划投资（万元）:</label>
                <input type="text" class="easyui-textbox" style="width:240px;" name="planInvest"  validType="intOrFloat" value="${hdInfo.planInvest}" readonly>
            </div>
            <div class="form_one">
                <label class="lable-style">资金来源:</label>
                <input class="easyui-textbox" name="capitalSourceId" editable="false" style="width: 240px;" value="${hdInfo.capitalSource.name}" readonly>
            </div>


        </div>
        <div style="clear: both;height:57px;">
            <div class="form_one" style="width: 900px;">
                <label class="lable-style">治理方案:</label>
                <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="treatScheme" value="${hdInfo.treatScheme}" readonly/>
            </div>
        </div>

        <div style="clear: both">
            <div class="form_one fotm-textarea">
                <label class="lable-style">治理内容:</label>
                <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="treatContent" readonly
                       value="${hdInfo.treatContent}"/>
            </div>
        </div>
    </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>治理内容相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <accessory:accessorySimple permission=""  packageKey="zlnr" packageInfos="${accessoryList}" uploadUserId="${loginUser.id}"  accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information">
        <div class="information-title">
            <p>验收信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="height: 100px;">
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">主管部门:</label>
                    <input class="easyui-textbox" style="width: 240px;" validType="validSelect" name="competentDeptId" value="${hdInfo.competentDept.name}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患负责人:</label>
                    <input class="easyui-textbox"  style="width: 240px;"  value="${hdInfo.chargeUser.name}" readonly>
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患验收人:</label>
                    <input class="easyui-textbox" editable="false" style="width: 240px;" value="${hdInfo.acceptUser.name}" readonly>
                </div>
            </div>
        </div>
    </div>
    <div class="information" style="height: 200px;">
        <div class="information-title">
            <p>风险信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
       <%-- <a id="btn_riskAssess" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-bolt fa-lg" style="margin:5px;" onclick="add_riskLevelInfo_func()">风险评估</a>--%>
        <div class="cuttle" style="height: 220px;">

            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">风险评估最大值:</label>
                    <input id="riskAssessMax" class="easyui-textbox" style="width: 240px;" readonly
                           name="riskAssessMax" value="${hdInfo.riskAssessMax}">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患评估值（人员）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessPeople" name = "riskAssessPeople" class="easyui-textbox" readonly
                           style="width: 240px;" value="${hdInfo.riskAssessPeople}">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患评估值（财产）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessMoney" name = "riskAssessMoney" class="easyui-textbox" readonly
                           style="width: 240px;" value="${hdInfo.riskAssessMoney}">
                </div>
            </div>
            <div style="clear: both">

                <div class="form_one">
                    <label class="lable-style">隐患评估值（环境）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessEnvironment" name = "riskAssessEnvironment" class="easyui-textbox" readonly
                           style="width: 240px;" value="${hdInfo.riskAssessEnvironment}">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患评估值（声誉）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessPrestige" name = "riskAssessPrestige" class="easyui-textbox" readonly
                           style="width: 240px;" value="${hdInfo.riskAssessPrestige}">
                </div>
                <div class="form_one">
                    <label class="lable-style">风险评估人员:</label>
                    <input type="hidden" id="riskAssessUserId" name="riskAssessUserId" value="${hdInfo.riskAssessUser.id}" >
                    <input id="riskAssessUserName" class="easyui-textbox" style="width: 240px;"  readonly
                           value="${hdInfo.riskAssessUser.name}">
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
